package cn.edu.ahstu.acm.shiro;

import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;

import cn.edu.ahstu.acm.context.ServerContext;
import cn.edu.ahstu.acm.support.OnlineUserSupport;

public class LogoutFilter extends
		org.apache.shiro.web.filter.authc.LogoutFilter {

	protected boolean preHandle(ServletRequest request, ServletResponse response)
			throws Exception {
		OnlineUserSupport.remove(ServerContext.getCurrentUser());
		return super.preHandle(request, response);
	}

}
